<%@page import="com.kzw.oa.model.system.AppUser"%>
<%@page import="com.kzw.oa.service.info.NotificationService"%>
<%@page import="com.kzw.oa.service.system.AppUserService"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="com.kzw.core.util.AppUtil"%>
<%@page import="com.kzw.core.util.ContextUtil"%>
<%
	//登录成功后，需要把该用户显示至在线用户
	AppUtil.addOnlineUser(request.getSession().getId(), ContextUtil.getCurrentUser());
	AppUserService appUserService=(AppUserService)AppUtil.getBean("appUserService");
	String path = request.getContextPath();
	String base = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
	<head>
		<base href="<%=base%>">
		<title><%=AppUtil.getCompanyName()%></title>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<link rel="stylesheet" type="text/css" href="ext/theme/crisp/ext-theme-crisp-all.css"/>
		<link rel="stylesheet" type="text/css" href="ext/ext-charts-all.css"/>
		<link rel="stylesheet" type="text/css" href="css/admin.css"/>
		<link rel="stylesheet" type="text/css" href="css/desktop.css" />
		<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css" />	
		<link rel="stylesheet" type="text/css" href="app/ux/css/UploadDialog.css" />
		<!--[if lt IE 9]>
		   <style type="text/css">
		   .div.x-mask {
		       background-color: rgb(41, 41, 41) !important;
		       filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#b2000000,endColorstr=#b2000000);
		    }
		    </style>
		<![endif]-->
		
   	 	<script>
    		var __ctxPath = "<%=request.getContextPath() %>";
    		var userInfo = "<%=appUserService.getCurUserInfo()%>";
    		var principal = '<security:authentication property="principal.fullname"/>（<security:authentication property="principal.depNames"/>）';
    	</script>
	</head>

	<body oncontextmenu="return false" onbeforeunload="//return confirm('确认要离开吗？');">
		<!--  
		<div id="loading">
             <div class="loading-indicator">
                  <img src="resource/images/loading.gif" alt="" width="153" height="16" style="margin-right:8px;" align="absmiddle"/>
                  <div class="clear"></div>
         		    正在加载，请稍候......
             </div>
        </div>
        <div id="loading-mask"></div>
        -->
        
		<div id="app-header">
					<div class="topbar">
	           	欢迎您，<b><security:authentication property="principal.fullname"/>
	           		（<security:authentication property="principal.depNames"/>）</b>
	           	<a href="javascript:App.Logout();void(0)"><i class="fa fa-power-off"></i> 退出系统</a>

	       	</div>
	       	<div class="banner">
				<div id="header-left">
					<img src="images/logo.png" title="新疆大学外事管理系统" />
				</div>
				<div id="header-right">
					<ul id="top-nav" class="nav"></ul>
				</div>
			</div>
		</div>
		
		<script type="text/javascript" src="ext/ext-all.gzjs"></script>
  		<script type="text/javascript" src="ext/ext-locale-zh_CN.js"></script>
    	<script type="text/javascript" src="js/core/lib/jquery.min-1.7.1.js"></script>
    	<script type="text/javascript" src="js/core/lib/echarts-all.js"></script>
    	
    	<script type="text/javascript" src="pjs/MenuHome.js"></script>
  		<script type="text/javascript" src="app/ux/UploadDialog.js"></script>
  		<script type="text/javascript" src="app/ux/TreePanelEditor.js"></script>
    	<script type="text/javascript" src="app/app.js"></script>
  		<script type="text/javascript" src="js/App.import.js"></script>
  		<script type="text/javascript" src="js/core/ScriptMgr.js"></script>
    	<script type="text/javascript" src="js/core/AppUtil.js"></script>
    	<script type="text/javascript" src="js/App.js"></script>
    	<script type="text/javascript" src="js/core/KeExt.js"></script>
    	<script type="text/javascript" src="js/core/date.js"></script>
		<script type="text/javascript" src="pjs/comm/WndShow.js"></script>
		<script type="text/javascript" src="pjs/comm/ShowRecordWndShow.js"></script>
    	
    	<!-- AppUtil.js中引用附件上传的JS -->
    	<script type="text/javascript" src="js/system/FileAttachDetail.js"></script>
        <script type="text/javascript" src="js/system/FileUploadManager.js"></script>
        <script type="text/javascript" src="js/system/FileUploadImageDetailForm.js"></script>
        <script type="text/javascript" src="js/fileupload/swfobject.js"></script>
        <script type="text/javascript" src="js/fileupload/FlexUploadDialog.js"></script>
        <script type="text/javascript" src="js/system/GlobalTypeForm.js"></script>
        
        <!-- 树形下拉框 -->
        <script type="text/javascript" src="app/ux/TreePicker.js"></script>
        <!-- 在线用户选择器,在主页面显示在线用户时用到 -->
		<script type="text/javascript" src="js/selector/OnlineUserSelector.js"></script>
		<script type="text/javascript" src="js/selector/UserSelector.js"></script>
		<script type="text/javascript" src="js/selector/DepSelector.js"></script>
		<script type="text/javascript" src="pjs/ToastWindow.js"></script>
		
		<script type="text/javascript" src="app/ux/EChartsComponent.js"></script>
		<script type="text/javascript" src="app/ux/CheckboxStoreGroup.js"></script>
		<script type="text/javascript" src="app/ux/ImageAttachePanel.js"></script>
		
		<script type="text/javascript" src="app/ux/form/DateTimeField.js"></script>
		<script type="text/javascript" src="app/ux/form/TimePickerField.js"></script>
		<script type="text/javascript" src="app/ux/DateTimePicker.js"></script>
		<script type="text/javascript" src="app/ux/DateTimeMenu.js"></script>
		
	</body>
</html>
